﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TaskScheduleSetupAdd.aspx.cs" Inherits="Task_Schedule_Task_Schedule_SetupAdd" %>
<%@ Register TagPrefix="PubHead" TagName="header" Src="~/pub/crm/include/header.ascx" %>
<PubHead:header id="header" Runat="server"></PubHead:header>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
   <form id="form1" runat="server" >
    <div align="center">
       <table width="90%" class="poptab">
            <tr > 
              <td class="title" ><div id="title"><strong>任务设置</strong></div></td>
            </tr>
        </table>
 <table width="90%">
 <tr> </tr>
    <tr>    
       
        <td width="20%"  align="right">
          <asp:Button ID="imbSave" Text="保存" runat="server" CssClass="btn" OnClick="ImageButton1_Click"  />
          <input name="back"   value="返回" class="btn" type="button" id="back" onclick="javascript: window.location='TaskScheduleSetupList.aspx'" />
        
        
    </tr>
    <tr> </tr>
    
  </table>
    <table width="90%" border="0" class="opertab">
    <tr class="title"> 
      <td> <div align="center"><font color="#FFFFFF">任务添加</font></div></td>
       
    </tr>    
  </table>

  <table width="90%">
    <tr class="dg_alternating"> 
      <td  > 选择名称:</td>
      <td align="left" width="70%" >
          <asp:DropDownList ID="DropDownList1" runat="server">
          </asp:DropDownList></td>
    </tr>
     <tr class="dg_item"> 
      <td   > 任务类型:</td>
      <td align="left">
          <asp:RadioButton ID="RadioButton1" runat="server" Checked="True" GroupName="a" OnCheckedChanged="RadioButton1_CheckedChanged"
              Text="每天" AutoPostBack="True" />
          <asp:RadioButton ID="RadioButton2" runat="server" AutoPostBack="True" GroupName="a"
              OnCheckedChanged="RadioButton2_CheckedChanged1" Text="每周" Visible="true" />
          <asp:RadioButton ID="RadioButton3" runat="server" AutoPostBack="True" GroupName="a"
              OnCheckedChanged="RadioButton3_CheckedChanged1" Text="每月" Visible="False" /></td>
    </tr>
   <tr class="dg_alternating" > 
      <td   > 开始时间:</td>
      <td align="left" >
          <asp:TextBox ID="TextBox1" runat="server" CssClass="input2" Width="71px"></asp:TextBox> 小时<asp:TextBox
              ID="TextBox2" runat="server" Width="63px" CssClass="input2"></asp:TextBox>分钟</td>
    </tr>
  
    <tr class="dg_item">
    <td colspan="2">
        <asp:Panel ID="Panel1" runat="server"  Width="100%" Visible="false">
            <asp:RadioButton ID="RadioButton4" runat="server" Text="星期一" GroupName="day" />
            <asp:RadioButton ID="RadioButton5" runat="server" Text="星期二" GroupName="day" />
            <asp:RadioButton ID="RadioButton6" runat="server" Text="星期三"  GroupName="day"/>
            <asp:RadioButton ID="RadioButton7" runat="server" Text="星期四"  GroupName="day"/>
            <asp:RadioButton ID="RadioButton8" runat="server" Text="星期五"  GroupName="day"/>
            <asp:RadioButton ID="RadioButton9" runat="server" Text="星期六"  GroupName="day"/>
            <asp:RadioButton ID="RadioButton10" runat="server" Text="星期日"  GroupName="day"/></asp:Panel>
            
            <asp:Panel ID="panel2" runat="server" Width="100%" Visible="false">
                <table width="100%">
                <tr align="center">
                <td width="30%"></td>
                <td width="70%" align="left"> 每月第<asp:TextBox ID="txt_day" runat="server" CssClass="input2" Width="40"></asp:TextBox>天</td>
              
                </tr>
                </table></asp:Panel>
       
    </td>
   </tr>
   <tr class="dg_alternating">
   <td  >是否有效</td>
   <td align="left"><asp:CheckBox ID="ch_state" runat="server" AutoPostBack="True" OnCheckedChanged="ch_state_CheckedChanged"></asp:CheckBox>
   <asp:Label ID="Label1" runat="server"  Width="150px" ForeColor="red"></asp:Label>
   </td>
   </tr>
   
   <tr>
   <td colspan="2" align="left">备注:</td>
   
   </tr>
    <tr>
    <td colspan="2" align="left">
          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
              ErrorMessage="小时不能为空"></asp:RequiredFieldValidator>&nbsp;
        <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TextBox1"
            ErrorMessage="小时不能大于24" MaximumValue="24" MinimumValue="0" Type="Integer"></asp:RangeValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1"
            ErrorMessage="小时不能超过两位" ValidationExpression="\d{1,2}"></asp:RegularExpressionValidator><br />
        <br />
          <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
              ErrorMessage="分钟不能位空"></asp:RequiredFieldValidator>
        <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="TextBox2"
            ErrorMessage="分钟不能大于59" MaximumValue="59" MinimumValue="0" Type="Integer"></asp:RangeValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox2"
            ErrorMessage="分钟不能超过两位" ValidationExpression="\d{1,2}"></asp:RegularExpressionValidator><br />
        &nbsp;<br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_day"
                        ErrorMessage="天数不能为空"></asp:RequiredFieldValidator>
        <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="txt_day"
            ErrorMessage="天数必须大于等于1小于等于31" MaximumValue="31" MinimumValue="1" Type="Integer"></asp:RangeValidator>
        <br />
        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txt_day"
            ErrorMessage="第几天不能超过两位" ValidationExpression="\d{1,2}"></asp:RegularExpressionValidator></td>
    
    </tr>
    
          
  </table>
    </div>
    </form>
</body>
</html>
